package models;

import views.ShortQView;
import views.TrueFalseQView;
import controllers.ShortQController;
import controllers.TrueFalseQController;
import mvc.AbstractView;

public class ShortQuestion extends AbstractQuestion
{

	public ShortQuestion(String name, String caption, double points)
	{
		super(name, caption, points);
	}


	@Override
	public String getCategory()
	{
		return new String("short question");
	}


	@Override
	public AbstractView createView()
	{
		if(itsIObservers.size() > 0)
		{
			return null;
			
		}
		
		ShortQController controller = new ShortQController(this);
		AbstractView view  = new ShortQView(controller, this);
		this.attach(view);
		return view;
	}
}
